<template>
	<view>
		<uni-card>
			<view class="u-demo-title"><strong>{{content.title}}</strong></view>
			<!-- word-break: break-all;自动换行 -->
			<view><strong>反馈人:{{info.nickName}}</strong></view>
			<view style="word-break: break-all;">{{content.content}}</view>
		</uni-card>
	</view>
</template>

<script>
	import api from 'commer/apiURL.js'
	export default {
		data() {
			return {
				base:api.baseurl,
				content:'',
				info:''
			}
		},
		onLoad(options) {
			this.getxin(options.id)
			this.getinfo()
		},
		methods: {
			getxin(id){
				console.log(this.base)
				this.$get(this.base+'/prod-api/api/common/feedback/'+id).then((res)=>{	
					this.content = res.data
				})
			},
			getinfo(){
				this.$get(this.base+'/prod-api/api/common/user/getInfo').then((res)=>{		
					this.info = res.user
				})
			},
		}
	}
</script>

<style>

</style>
